package net.sk.china.city.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 捐赠物品对象 ar_donations
 * 
 * @author gxf
 * @date 2024-04-07
 */
@Data
public class ArDonations
{
    private static final long serialVersionUID = 1L;

    /** 捐赠物品id */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 物资名称 */
    private String materialName;

    /** 规格型号 */
    private String specifications;

    /** 物品数量 */
    private Integer itemNumber;

    /** 单价 */
    private BigDecimal monovalent;

    /** 总价 */
    private BigDecimal totalPrice;

    /** 捐赠id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long donateId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialName", getMaterialName())
            .append("specifications", getSpecifications())
            .append("itemNumber", getItemNumber())
            .append("monovalent", getMonovalent())
            .append("totalPrice", getTotalPrice())
            .append("donateId", getDonateId())
            .toString();
    }
}
